import request from '@/utils/request'

//#region 原始订单列表api
// 获取订单分页数据(/omsorder/admin/getOrderList)
export const getOrderList = (data) => request.post('/back/omsorder/getOrderList', data)

// 查询-班次信息（航班号、车次号）（/common/findTravelWayInfo）content-type:application/x-www-form-urlencoded
export const findTravelWayInfo = (data) => request.post('/common/findTravelWayInfo', data, {
    headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
    }
})

// 获取系统地点分页列表（/back/stationList/getStationListPages） 酒店查询
export const getStationListPages = (data) => request.post('/back/stationList/getStationListPages', data)

// PC添加订单(/omsorder/admin/add)
export const add = (data) => request.post('/back/omsorder/add', data)

// 订单编辑按钮(/omsorder/admin/edit)
export const edit = (data) => request.post('/back/omsorder/edit', data)


// 批量删除(/omsorder/admin/delete)
export const omsorderdelete = (data) => request.post('/back/omsorder/delete', data)

// 获取订单详情(/omsorder/admin/getOrderInfo)
export const getOrderInfo = (data) => request.post('/back/omsorder/getOrderInfo', data)

// 获取订单合并列表(/omsorder/admin/mergeQuery)
export const mergeQuery = (data) => request.post('/back/omsorder/mergeQuery', data)

// 订单合并确认(/omsorder/admin/merge)
export const merge = (data) => request.post('/back/omsorder/merge', data)

// 订单导出(/omsorder/admin/export)
export const omsorderexport = (data) => request.post('/back/omsorder/export', data, )




// /back/company/getCompanyCombo获取-下拉框（/back/company/getCompanyCombo）
export const getCompanyCombo = (data) => request.post('/back/company/getCompanyCombo', data)


//#endregion
// 获取业务员列表/company/staffCenter/getServiceMans
export const getServiceMans = (data) => request.post('/company/staffCenter/getServiceMans', data)
// 获取会员列表下拉框（/back/customers/findComboCusList）
export const findComboCusList = (data) => request.post('/back/customers/findComboCusList', data)
//#region 订单跟进
//订单跟进(/omsorder/admin / getOrderProcessList)
export const getOrderProcessList = (data) => request.post('/back/omsorder/getOrderProcessList', data)

// 取消合并按钮(/omsorder/admin/cancelMerge)
export const cancelMerge = (data) => request.post('/back/omsorder/cancelMerge', data)

// 订单发布(/omsorder/admin/release)
export const release = (data) => request.post('/back/omsorder/release', data)

// 添加/修改-用户个性设置数据API（post）/back/privateSet/adupPrivateSet
export const adupPrivateSet = (data) => request.post('/back/privateSet/adupPrivateSet', data)

// 获取-用户个性设置数据列表API（post）/back/privateSet/getPrivateSetList
export const getPrivateSetList = (data) => request.post('/back/privateSet/getPrivateSetList', data)

//#endregion
